package com.jun;
import com.vdp.utils.JdbcUtils;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
public class TestJdbc02 {
    public static void main(String[] args) {
        Connection conn = null;
        Statement st = null;
        ResultSet rs = null;
        try{
            conn = JdbcUtils.getConnection();
            st = conn.createStatement();
            String sql = "insert into users(id,name,password,email,birthday) " + "values(4,'kuangshen','123','24736743@qq.com','2020-01-01')";
            int num = st.executeUpdate(sql);
            if(num>0){
                System.out.println("插入成功！！");
            }
        }
        catch(Exception e){
            e.printStackTrace();
        }
        finally{
            JdbcUtils.release(conn, st, rs);
        }
    }
}